
package com.thingsgrid.physicalmodel.entity;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * 功能说明：物模型
 *
 * @author 李龙飞
 * @since 2019/9/10 17:21
 */
@Data
@Document(collection = "physical_model")
public class PhysicalModel {

	/**
	 * 物模型ID
	 */
	@Field("id")
	private String physicalModelId;

	/**
	 * 物模型名称
	 */
	@Field("physical_name")
	private String physicalName;

	/**
	 * 物模型描述
	 */
	@Field("physical_describe")
	private String physicalDescribe;

	/**
	 * 物模型属性
	 */
	@Field("physical_attribute")
	private List<PhysicalAttribute> physicalAttribute;

	/**
	 * 物模型服务
	 */
	@Field("physical_server")
	private List<PhysicalServer> physicalServer;

	/**
	 * 物模型事件
	 */
	@Field("physical_event")
	private List<PhysicalEvent> physicalEvent;

	/**
	 * 创建人
	 */
	@Field("create_author")
	private String createAuthor;

	/**
	 * 创建时间
	 */
	@Field("create_time")
	private String createTime;
}
